Page({
  data: {
    searDataArr: [
      {
        title: '电影',
        content: '影院热映',
        color: 'rgb(35, 132, 232)'
      }, {
        title: '电视',
        content: '正在热播',
        color: 'rgb(122, 106, 219)'
      }, {
        title: '图书',
        content: '畅销排行',
        color: 'rgb(159, 120, 96)'
      }, {
        title: '同城',
        content: '周末活动',
        color: 'rgb(230, 70, 126)'
      }, {
        title: '小组',
        content: '志趣相投',
        color: 'rgb(42, 184, 204)'
      }, {
        title: '音乐',
        content: '新碟榜',
        color: 'rgb(244, 143, 46)'
      }, {
        title: '阅读',
        content: '电子书',
        color: 'rgb(159, 120, 96)'
      }, {
        title: '游戏',
        content: '虚拟世界',
        color: 'rgb(87, 116, 197)'
      }, {
        title: '应用',
        content: '玩手机',
        color: 'rgb(89, 108, 221)'
      }, {
        title: '广播',
        content: '友邻动态',
        color: 'rgb(225, 100, 77)'
      }, {
        title: 'FM',
        content: '红心歌单',
        color: 'rgb(64, 207, 169)'
      }, {
        title: '豆品',
        content: '生活美学',
        color: 'rgb(66, 189, 86)'
      }
    ],
    showSearchIcon: false
  },
  getFocus(e) {
    this.setData({
      showSearchIcon: true
    });
  },
  loseFocus(e) {
    this.setData({
      showSearchIcon: false
    })
  },
  formSubmit(e) {
    console.log('submit事件，携带数据为：' + e.detail.value);
    console.log(e.detail.value)
  },
  formReset(e) {
    console.log('reset事件');
  }
})